package com.ruoyi.maode.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 零部件尺寸实体类
 * @author zhangwenqiang
 */
@Data
@Accessors(chain = true)
@TableName("part_size")
@ApiModel(value = "PartSize对象", description = "零部件尺寸表")
public class PartSize{

    @Excel(name = "ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @Excel(name = "零件ID")
    private String partId;

    @Excel(name = "检测序号")
    private String serialNumber;

    @Excel(name = "检测项目")
    private String detection;

    @Excel(name = "判定标准最大值")
    private String max;

    @Excel(name = "判定标准最小值")
    private String min;

    @Excel(name = "检验级别，0-重要，1-一般，2-普通")
    private Integer level;

    @Excel(name = "检测方法")
    private String testMethod;

    @Excel(name = "检验频率,0-1次/批，1-1次/月，2-1次/季度，3-1次/年")
    private Integer frequency;

    @Excel(name = "创建时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
